#include "kmeans.h"
#include "classify.h"

int main()
{
	string filename = "test.txt";
	KMeans kmeans(filename);
	Tuple means[ClusterNum];
	kmeans.Start(means);
	double meansArr[ClusterNum][AttrNum];
	for (int i=0; i < ClusterNum; i++)
	{
		for(int j=0; j < AttrNum; j++)
			meansArr[i][j] = means[i].attr[j];
	}

	double test[3] = {10,3,70};
	cout<<"\n\nthe result: "<<classify(test, meansArr) + 1<<endl;;
	return 0;
}